const App = {
    mixins:[Save],//配置文件，路径/utils/mixins.js
    data() {
        return {
            scenic_spot:[],
            static_importent_tour_scence_camera_type:[]
        };
    },
    mounted() {
        this.getCity();
    },
    methods: {
        getCity(){
            $.ajax({
                headers: requestHeaders(),
                url: `${mh}/generalBusiness/generalQueryByTableName`,
                type: 'POST',
                data: {
                    Data: 'static_importent_tour_scence_camera_type',
                    Condition:"Row_Status='0'",
                },
                success:(res)=> {
                    this.static_importent_tour_scence_camera_type = res;
                },
                complete: (XMLHttpRequest) => {
                    requestPretreatment(XMLHttpRequest);
                },
                dataType: "json"
            });
            $.ajax({
                headers: requestHeaders(),
                url: `${mh}/generalBusiness/generalQueryByTableName`,
                type: 'POST',
                data: {
                    Data: 'scenic_spot',
                    Condition:"Row_Status='0'",
                },
                success:(res)=> {
                    this.scenic_spot = res;
                },
                complete: (XMLHttpRequest) => {
                    requestPretreatment(XMLHttpRequest);
                },
                dataType: "json"
            });
        },
    },
};
const { createApp, ref } = Vue;
const app = createApp(App);
app.use(ElementPlus,{locale: zhCn});
//这种方式是引入全部图标，无需单个引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
const ElMessage = ElementPlus.ElMessage;
app.mount("#app");
